package 进阶.lambda表达式.练习;

public class demo {
    public static void main(String[] args) {
        invoke(new cook() {
            @Override
            public void makeCook() {
                System.out.println("111");
            }
        });

        invoke(()->{
            System.out.println("2222");
        });
    }

    private static void invoke(cook c) {
        c.makeCook();
    }
}
